package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type MarksBillRouter struct {
}

// InitMarksBillRouter 初始化 MarksBill 路由信息
func (s *MarksBillRouter) InitMarksBillRouter(Router *gin.RouterGroup) {
	marksBillRouter := Router.Group("marksBill").Use(middleware.OperationRecord())
	marksBillRouterWithoutRecord := Router.Group("marksBill")
	var marksBillApi = v1.ApiGroupApp.AutoCodeApiGroup.MarksBillApi
	{
		marksBillRouter.POST("createMarksBill", marksBillApi.CreateMarksBill)   // 新建MarksBill
		marksBillRouter.DELETE("deleteMarksBill", marksBillApi.DeleteMarksBill) // 删除MarksBill
		marksBillRouter.DELETE("deleteMarksBillByIds", marksBillApi.DeleteMarksBillByIds) // 批量删除MarksBill
		marksBillRouter.PUT("updateMarksBill", marksBillApi.UpdateMarksBill)    // 更新MarksBill
	}
	{
		marksBillRouterWithoutRecord.GET("findMarksBill", marksBillApi.FindMarksBill)        // 根据ID获取MarksBill
		marksBillRouterWithoutRecord.GET("getMarksBillList", marksBillApi.GetMarksBillList)  // 获取MarksBill列表
	}
}
